package com.zyz.K_集合.Set实现类二LinkedHashSet;

import java.util.LinkedHashSet;

/**
 * @author: vick
 * @Date: 2025/3/28
 * @Description:
 * @version: 1.0
 */
public class Demo1 {
    public static void main(String[] args) {
        LinkedHashSet<String> hashSet = new LinkedHashSet<>();
        hashSet.add("陈一发儿");
        hashSet.add("陈一发儿");
        hashSet.add("坤坤");
        hashSet.add("凡哥");
        hashSet.add(new String("凡哥"));
        hashSet.add("峰峰");
        hashSet.add("李佳奇");
        hashSet.add("威雅");

        System.out.println(hashSet);
    }
}
